package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.DishOrderSubDO;
import com.yongbao.model.request.DishOrderSubRequest;
import com.yongbao.model.vo.DishOrderSubVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DishOrderSubDtoMapper {

    DishOrderSubDtoMapper INSTANCE = Mappers.getMapper(DishOrderSubDtoMapper.class);

    /**
    * DO to VO
    * @param dishOrderSubDO
    * @return
    */
    DishOrderSubVO do2VO(DishOrderSubDO dishOrderSubDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    DishOrderSubDO request2DO(DishOrderSubRequest request);
}
